<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ tag description="welcome message" pageEncoding="UTF-8" %>
 
<%@attribute name="admin" required="false" type="eu.expressis.eiaf.auth.infrastructure.integration.db.entity.Admin"%>
<%@attribute name="teacher" required="false" type="eu.expressis.eiaf.auth.infrastructure.integration.db.entity.Teacher"%>
<%@attribute name="student" required="false" type="eu.expressis.eiaf.auth.infrastructure.integration.db.entity.Student"%>
 
<c:choose>
    <c:when test="${not empty admin}">       
	Hello admin ${admin.firstName} ${admin.lastName} !       
    </c:when>  
    <c:when test="${not empty teacher}">      
	Hello ${teacher.rank} ${teacher.firstName} ${teacher.lastName} !
    </c:when>
    <c:when test="${not empty student}">
	Hello student ${student.firstName} ${student.lastName} email: ${student.email} year: ${student.yearOfStudy} !
    </c:when>
</c:choose>


